package part01.PnamespaceDI;

/**
 * Created by futao on 2017/10/10.
 */
public class School {
    private String schoolName;

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    /**
     * 带参构造方法
     *
     * @param schoolName 学校名称
     */
    public School(String schoolName) {
        this.schoolName = schoolName;
    }

    /**
     * 无参构造方法
     */
    public School() {
    }

    @Override
    public String toString() {
        return "School{" +
                "schoolName='" + schoolName + '\'' +
                '}';
    }
}
